package com.ztrue.framework.core.domain;

/**
 * 聚合存储接口
 *
 * @author zhangw
 * @date 2016/11/2 16:32
 * @version: 1.0
 */
public interface IAggregateStorage {
    /**
     * 从聚合存储中获取一个聚合根
     *
     * @param aggregateRootId
     * @param aggregateRootType
     * @param <T>
     * @return
     */
    <T extends IAggregateRoot> T get(String aggregateRootId, Class<T> aggregateRootType);
}
